package work;

public class SwitchDemo {
    public static void main(String[] args) {
        switch (1){
            case 1:
                System.out.println("1");
                //无break,则向下贯穿，直到遇见break
            case 2:
                System.out.println("2");
                break;//终止
            case 3:
                System.out.println("3");
            case 4:
                System.out.println("4");
                break;
            default:
                System.out.println("000");
        }
    }
}
